﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

    <LinearGradientBrush x:Key="ButtonBackgroundBrush">
        <GradientStop Color="Yellow" Offset="0" />
        <GradientStop Color="Red" Offset="1" />
    </LinearGradientBrush>
    <SolidColorBrush Color="Purple" x:Key="ButtonForegroundBrush" />
    <SolidColorBrush Color="LimeGreen" x:Key="ButtonBorderBrush" />
    <Style TargetType="Button" x:Key="btnstyle" >
        <Setter Property="Background" Value="{StaticResource ButtonBackgroundBrush}" />
        <Setter Property="Foreground" Value="{StaticResource ButtonForegroundBrush}" />
        <Setter Property="BorderBrush" Value="{StaticResource ButtonBorderBrush}" />
    </Style>
</ResourceDictionary>